package com.jiangruan.javaproject.service;/**
 * @author:xulonghua
 * @email:3162193565@qq.com
 * desc:获取链头区块哈希
 * datatime 2021/12/13 18:00
 */

import com.alibaba.fastjson.JSONObject;
import com.jiangruan.javaproject.Constants;
import com.jiangruan.javaproject.bean.Getbestblockhsah;

/**
 *@author:xulonghua
 *@email:3162193565@qq.com
 *desc:
 *datetime 2021/12/13 18:00
 */
public class GetBestBlockHash {
    public Getbestblockhsah getbestblockhash(){
        String result = UtilCommon.utilcommon ( 1001, Constants.GetBestBlockHash, null);
        System.out.println (result);
        //把result数据解析成getbestblockhsah类型
        Getbestblockhsah getbestblockhsah = JSONObject.parseObject ( result, Getbestblockhsah.class );
        return getbestblockhsah;
    }
}
